package com.tgy.mapper;

import com.github.pagehelper.PageHelper;
import com.tgy.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/***
 * @ClassName: UserMapper
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:03 2021/12/14
 * @version : V1.0
 */
public interface UserMapper {
    List<User> getUsers();

    //根据id查询用户
    User selectUserById(@Param("id")int id);

    //insert
    int insertUser(User user);

    //update
    int updUser(User user);

    //delete
    int delUser(int id);

    //模糊查询
    List<User> getUsersLike(String name);

    List<User> getUserByLimit(Map<String, Object> map);

}
